package com.example.redstarcommerce.cn.dh.coupon.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @ClassName CouPon
 * @Author AndyWu
 * @Date 2024-11-01 22:32
 * @Motto 学不死就往死里学
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("coupon")
public class CouPon {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private  String name;

    @TableField("type")
    private String type;

    @TableField("price")
    private  Float price;

    @TableField("num")
    private  Integer num;

    @TableField("begintime")
    private Timestamp begintime;

    @TableField("endtime")
    private Timestamp endtime;

    public CouPon(String name, String type, Float price, Integer num, Timestamp begintime, Timestamp endtime) {
        this.name = name;
        this.type = type;
        this.price = price;
        this.num = num;
        this.begintime = begintime;
        this.endtime = endtime;
    }
}
